import Vue from 'vue'
import Router from 'vue-router'
import Header from '@/page/Header'
import Data from '@/page/data/Data.vue'
import Category from '@/page/category/Category.vue'
import Menu from '@/page/menu/Menu.vue'
import Sale from '@/page/sale/Sale.vue'
import User from '@/page/user/User.vue'
import Company from '@/page/company/Company.vue'
import DeskTop from '@/page/desktop/DeskTop.vue'
import MenuDetail from '@/page/menu/Detail.vue'
import CategoryDetail from '@/page/category/Detail.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Header',
      component: Header
    },
    {
      path: '/page/data',
      component: Data
    },
    {
      path: '/page/category',
      component: Category
    },
    {
      path: '/page/menu',
      component: Menu
    },
    {
      path: '/page/sale',
      component: Sale
    },
    {
      path: '/page/user',
      component: User
    },
    {
      path: '/page/desktop',
      component: DeskTop
    },
    {
      path: '/page/company',
      component: Company
    },
    {
      path: 'page/menu/Detail/:id',
      name: 'menu.detail',
      component: MenuDetail
    },
    {
      path: 'page/category/Detail/:id',
      name: 'category.detail',
      component: CategoryDetail
    }
  ]
})
